package com.bd.scm.domain.models.device;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mason
 * @since 2019-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("st_device")
public class StDevice extends Model<StDevice> {

    private static final long serialVersionUID = 1L;

    @TableField("dev_logic_bh")
    private Integer devLogicBh;
    private Integer lx;
    @TableField("dev_lx")
    private String devLx;
    @TableField("dev_sb_id")
    private Long devSbId;
    @TableField("dev_type")
    private Integer devType;
    @TableField("gly_pass")
    private String glyPass;
    private Date jssj;
    @TableField("user_version")
    private Integer userVersion;
    @TableField("once_add_max")
    private BigDecimal onceAddMax;
    private String zt;
    @TableField("ac_ver")
    private Integer acVer;
    @TableField("dev_lock")
    private Integer devLock;
    @TableField("add_sj")
    private Date addSj;
    private String mj;
    @TableField("dev_version")
    private String devVersion;
    private Integer port;
    @TableField("sys_ver")
    private Integer sysVer;
    @TableField("bt_ver")
    private Integer btVer;
    private String pztj;
    @TableField("dev_dorm")
    private Integer devDorm;
    @TableField("more_card")
    private Integer moreCard;
    @TableField("dev_up")
    private Integer devUp;
    @TableField("fbt_ver")
    private Integer fbtVer;
    @TableField("dev_id")
    private String devId;
    private Integer yzfs;
    private Date sj;
    private Integer state;
    @TableField("ac_crc32")
    private String acCrc32;
    private Integer signal;
    private Integer btl;
    private String bh;
    private String gateway;
    private Integer jksz;
    private Integer isReal;
    @TableField("day_add_count")
    private Integer dayAddCount;
    private String ip;
    @TableField("run_state")
    private Integer runState;
    @TableField("rate_enable")
    private Integer rateEnable;
    private Integer tjkq;
    @TableField("day_add_max")
    private BigDecimal dayAddMax;
    @TableField("dev_lb")
    private Integer devLb;
    private Integer com;
    @TableField("main_card")
    private Integer mainCard;
    private String notice;
    @TableField("max_flow_no")
    private Integer maxFlowNo;
    private String mm;
    @TableField("add_ver")
    private Integer addVer;
    private String mask;
    private String mac;
    @TableField("dev_state")
    private Integer devState;
    @TableField("kq_sys_ver")
    private Integer kqSysVer;
    @TableField("online_sj")
    private Date onlineSj;
    private Integer dlx;
    private String kmry;
    private String mc;
    @TableField("sub_type")
    private Integer subType;
    private String dyip;
    @TableField("module_id")
    private String moduleId;
    private String bz;
    @TableField("sub_del")
    private Integer subDel;
    private String regserial;
    @TableField("dev_search")
    private Integer devSearch;
    @TableField("dev_xs")
    private String devXs;
    @TableField("on_line")
    private Date onLine;
    @TableField("kq_sys_crc32")
    private Integer kqSysCrc32;
    private String xs;
    @TableField("gly_no")
    private String glyNo;
    private Date kssj;
    @TableField("sys_crc32")
    private String sysCrc32;
    private String pzlj;
    private String kqjcj;
    @TableField("dev_app_id")
    private Long devAppId;
    @TableField("dev_xh")
    private String devXh;
    @TableField("pay_type")
    private Integer payType;


    @Override
    protected Serializable pkVal() {
        return this.bh;
    }

}
